package com.campus_information_portal.entity;

import com.campus_information_portal.util.DateJsonType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

public class Exemption {
    private int exemptionId;
    private int stuInfoId;
    private String exemptionReason;
    private int exemptionFlag;
    @JsonSerialize(using = DateJsonType.class)
    private Date applyTime;
    @JsonSerialize(using = DateJsonType.class)
    private Date disposeTime;

    public Date getDisposeTime() {
        return disposeTime;
    }

    public void setDisposeTime(Date disposeTime) {
        this.disposeTime = disposeTime;
    }


    public int getExemptionId() {
        return exemptionId;
    }

    public void setExemptionId(int exemptionId) {
        this.exemptionId = exemptionId;
    }

    public int getStuInfoId() {
        return stuInfoId;
    }

    public void setStuInfoId(int stuInfoId) {
        this.stuInfoId = stuInfoId;
    }

    public String getexemptionReason() {
        return exemptionReason;
    }

    public void setExemptionReason(String exemptionReason) {
        this.exemptionReason = exemptionReason;
    }

    public int getExemptionFlag() {
        return exemptionFlag;
    }

    public void setExemptionFlag(int exemptionFlag) {
        this.exemptionFlag = exemptionFlag;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    @Override
    public String toString() {
        return "Exemption{" +
                "exemptionId=" + exemptionId +
                ", stuInfoId=" + stuInfoId +
                ", exemptionIdReason='" + exemptionReason + '\'' +
                ", exemptionFlag=" + exemptionFlag +
                '}';
    }
}
